libxl: fix xenstore connection when run in domU
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 30 Aug 2010 12:58:07 +0000 (13:58 +0100)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 30 Aug 2010 12:58:07 +0000 (13:58 +0100)
commit8753bc456e7791b8f4c6c20f46488d11870c5f50
tree6c0aab0ac8cdef91987df0e36c5aca9d61aced8b
parent5c3f41d408cb14a9bc5a2a53f3ccd082447ab051
libxl: fix xenstore connection when run in domU

When used in a domain other than the one running xenstore,
libxl_ctx_init will fail to connect even when xenstore is actually
available. Add a call to xs_domain_open to handle this case.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl.c